<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function test(str){
				alert(str)
			}
		</script>
	</head>
	<body>
		<form name="chform" method="post">
			<p>请输入：<input type="text" name="textname" onblur="test(this.value)"/></p>
		</form>
	</body>
</html>